<%@ include file="/WEB-INF/jsp/include.jsp"%>

<c:url var="logout_url" value="/j_spring_security_logout" />
<p>
	Welcome <b>${username}</b> <a id="linkLogout" href="${logout_url}">Logout</a>
</p>

<c:url var="user_dashboard_url" value="/user/dashboard" />
<c:url var="admin_dashboard_url" value="/admin/dashboard" />
<ul>
	<sec:authorize access="isAuthenticated()">
		<li><a href="${user_dashboard_url}">User</a></li>
	</sec:authorize>
	<sec:authorize access="hasRole('ROLE_ADMIN')">
	<li><a href="${admin_dashboard_url}">Admin</a></li>
	</sec:authorize>
</ul>